package com.fund.common.enums;


import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum ProductType implements BaseEnum {
    MONETARY(1,"货币型"),
    STOCK(2,"股票型"),
    BOND(3,"债券型"),
    MIXED(4,"混合型");


    @EnumValue
    @JsonValue
    private final Integer value;
    private final String desc;

    ProductType(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }
}
